#include "adddevicegroup.h"
#include "ui_adddevicegroup.h"

AddDeviceGroup::AddDeviceGroup(QWidget *parent)
    : QDialog(parent)
    , ui(new Ui::AddDeviceGroup)
{
    ui->setupUi(this);
    ui->comboBox->addItem("类型","type");
    ui->comboBox->addItem("位置","location");
    connect(ui->btnOK,&QPushButton::clicked,this,[=](){
        this->accept();
    });
    connect(ui->btnCancel,&QPushButton::clicked,this,[=](){
        this->reject();
    });
}

AddDeviceGroup::~AddDeviceGroup()
{
    delete ui;
}

QString AddDeviceGroup::getComboxData()
{
    return ui->comboBox->currentData().toString();
}

QString AddDeviceGroup::getLineEditData()
{
    return ui->lineEdit->text();
}

